<?php

namespace app\api\controller;

use app\common\controller\Frontend;
use think\db\exception\ModelNotFoundException;

/**
 * 合作伙伴
 */
class Partner extends Frontend
{
    protected array $noNeedLogin = ['*'];


    /**
     * 合作伙伴
     * @return void
     * @throws ModelNotFoundException
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     */
    public function lst(): void
    {
        $partnerModel = new \app\common\model\Partner();
        $res = $partnerModel->where("status", 1)
            ->order("weigh", "desc")->select();
        $this->success("合作伙伴", $res);
    }

}